<?php

declare(strict_types=1);

namespace App\Robot\Dto;

use App\Common\Dto\DataObject;

/**
 * 链接消息数据
 */
class UrlMessageDTO extends DataObject
{
    /**
     * 标题
     * @var string
     */
    private string $title;

    /**
     * 简介
     * @var string
     */
    private string $desc;

    /**
     * 跳转链接
     * @var string
     */
    private string $linkUrl;

    /**
     * 封面图
     * @var string
     */
    private string $iconUrl;

    /**
     * 发送对象
     * @var mixed
     */
    private mixed $toId;

    public function getTitle(): string
    {
        return $this->title;
    }

    public function setTitle(string $title): UrlMessageDTO
    {
        $this->title = $title;
        return $this;
    }

    public function getDesc(): string
    {
        return $this->desc;
    }

    public function setDesc(string $desc): UrlMessageDTO
    {
        $this->desc = $desc;
        return $this;
    }

    public function getLinkUrl(): string
    {
        return $this->linkUrl;
    }

    public function setLinkUrl(string $linkUrl): UrlMessageDTO
    {
        $this->linkUrl = $linkUrl;
        return $this;
    }

    public function getIconUrl(): string
    {
        return $this->iconUrl;
    }

    public function setIconUrl(string $iconUrl): UrlMessageDTO
    {
        $this->iconUrl = $iconUrl;
        return $this;
    }

    public function getToId(): mixed
    {
        return $this->toId;
    }

    public function setToId(mixed $toId): UrlMessageDTO
    {
        $this->toId = $toId;
        return $this;
    }
}